-
Notifications
You must be signed in to change notification settings - Fork 873
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove javascript icon from location bar #7148
Conversation
02e2391
to
cdc21e4
Compare
51f4ee2
to
15bbfce
Compare
browser/ui/content_settings/brave_content_setting_image_models.cc
Outdated
Show resolved
Hide resolved
@@ -15,7 +15,7 @@ index 4f8182d209673801407db8955c370a026511deed..55361a1022b7cb2b683c336894834b20 | |||
for (auto type : kContentSettingImageOrder) | |||
result.push_back(CreateForContentType(type)); | |||
+#if defined(BRAVE_CHROMIUM_BUILD) | |||
+ BraveGenerateContentSettingImageModels(result); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's move this to chromium_src/chrome/browser/ui/content_settings/content_setting_image_model.cc
along with +#include "brave/browser/ui/content_settings/brave_content_setting_image_models.h"
And define these as BRAVE_GENERATE_CONTENT_SETTING_IMAGE_MODELS
macro
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm wondering do we really need BRAVE_CHROMIUM_BUILD
anywhere (cc @bridiver @simonhong) ?
we also probably can avoid patching by wrapping GenerateContentSettingImageModels
with our override
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this case (just adding our code), I think BRAVE_CHROMIUM_BUILD
can be deleted.
browser/ui/content_settings/brave_content_setting_image_models.cc
Outdated
Show resolved
Hide resolved
7861c22
to
b513022
Compare
updated! @darkdh let me know if this is what you meant |
583609b
to
d176510
Compare
d176510
to
060d35d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
CI tests are failing for a unrelated reason: https://bravesoftware.slack.com/archives/CA5FPHWLF/p1606189385254900 |
Fix brave/brave-browser#199
Submitter Checklist:
npm run lint
,npm run gn_check
)git rebase master
(if needed).git rebase -i
to squash commits (if needed).QA/Yes
orQA/No
) to the associated issuerelease-notes/include
orrelease-notes/exclude
) to the associated issueTest Plan:
Reviewer Checklist:
After-merge Checklist:
changes has landed on.